import request from './request'
export function getOrders(data) {
    return request({
      url: '/orders/page',
      method: 'post',
      data
    })
  }
export function addOrders(data) {
    return request({
      url: '/orders/add',
      method: 'post',
      data
    })
}
export function getOrdersById(id,userid) {
    return request({
      url: '/orders/selectById/'+id,
      method: 'get',
      params: {userid}
    })
}
export function updateOrders(data) {
    return request({
      url: '/orders/update',
      method: 'put',
      data
    })
}
export function deleteOrders(id) {
    return request({
      url: '/orders/delete/'+id,
      method: 'delete'
    })
}
export function deleteBatchOrders(ids,userid) {
    return request({
      url: '/orders/delete/batch',
      method: 'delete',
      params: {
        ids:ids,
        userid:userid
      }
    })
}
